package com.opt.sample;

public class NewPackage implements Comparable<NewPackage> {

	private double candProfit;
	private double candCity;
	private double candPriority;

	public double getCandProfit() {
		return candProfit;
	}

	public void setCandProfit(double candProfit) {
		this.candProfit = candProfit;
	}

	public double getCandCity() {
		return candCity;
	}

	public void setCandCity(double candCity) {
		this.candCity = candCity;
	}

	public double getCandPriority() {
		return candPriority;
	}

	public void setCandPriority(double candPriority) {
		this.candPriority = candPriority;
	}

	@Override
	public int compareTo(NewPackage arg0) {
		int equals = 0;

		equals = new Double(this.candCity).compareTo(new Double(arg0.candCity));

		return equals;
	}

}
